#include "BrowserDockWidget.h"
#include "ShortLayout.h"
#include "BrowserLayout.h"
#include "DockWidgetTitle.h"

#include <QVBoxLayout>

BrowserDockWidget::BrowserDockWidget()
{

    this->setMinimumWidth(200);
    this->setMinimumHeight(1000);

    this->setMaximumWidth(300);
    this->setMaximumHeight(1000);
    this->setFeatures(QDockWidget::NoDockWidgetFeatures);

    this->setTitleBarWidget(new QWidget);
    this->titleBarWidget()->deleteLater();

    DockWidgetTitle *title = new DockWidgetTitle(tr("浏览窗口"),this);
    this->setTitleBarWidget(title);

    this->init_layout();
}



void
BrowserDockWidget::init_layout ()
{
    QWidget* widget = new QWidget;

    //widget->setStyleSheet("QWidget#widgetMain{border: 10px solid #FF00FF; border-radius: 5px;}");

    QVBoxLayout* common_layout = new QVBoxLayout(widget);
    QHBoxLayout* short_layout =  new ShortLayout(common_layout);
    QVBoxLayout* browser_layout = new BrowserLayout (common_layout);
    this->setWidget(widget);

}
